//
//  MTWorksApiManager.h
//  MeToo
//
//  Created by 俊松何 on 2018/7/6.
//  Copyright © 2018年 tianxie. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "MTBannerModel.h"

@interface MTWorksApiManager : NSObject
+(MTWorksApiManager *)manager;


//获取首页的缓存数据
-(NSMutableArray<MTBannerModel *> *)getCacheBanners;







/**
 获取banner

 @param completionBlock 完成block
 */
-(void)getBannersWithcompletion:(void (^)(NSMutableArray<MTBannerModel *> *banner ,MTError *error))completionBlock;



/**
 作品点赞或者取消点赞

 @param workId workId
 @param like like
 @param completionBlock 完成block
 */
-(void)likeWorkWithWorkId:(NSString *)workId
                     like:(BOOL)like
               completion:(void (^)(MTError *boerror))completionBlock;


/**
 获取用户屏蔽的user数组对象

 @param completionBlock 完成block
 */
-(void)getShieldUsersWithcomplation:(void (^)(NSMutableArray<MTUserModel *> *shieldUsers, MTError *error))completionBlock;





/**
 移除用户屏蔽

 @param userId userId
 @param completionBlock 完成block
 */
-(void)removeShieldUser:(NSString *)userId
             completion:(void (^)(MTError *boerror))completionBlock;


/**
 移除作品屏蔽
 
 @param workId 作品ID
 @param completionBlock 完成block
 */
-(void)removeShieldWork:(NSString *)workId
             completion:(void (^)(MTError *boerror))completionBlock;





@end
